/**
 * 
 */
package com.archives.blog.common.domain.model;

import com.archives.blog.common.enums.PVStatisticsType;
import com.archives.blog.common.support.BaseModel;

/**
 * pv统计
 * 
 * @author chh
 *
 */
public class PVStatisticsDTO extends BaseModel<Long>{
	
	/** 地址、可以是项目地址、页面地址*/
	private String address;

	/** 统计类型*/
	private PVStatisticsType bsnType;
	
	/** 用户量统计*/
	public static final String BSN_TYPE_USER_LOGIN = "USER_LOGIN";
	
	/**
	 * pv量
	 */
	private Long pvCount = 0l;
	
	/**
	 * @return the address
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * @param address the address to set
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * @return the bsnType
	 */
	public PVStatisticsType getBsnType() {
		return bsnType;
	}

	/**
	 * @param bsnType the bsnType to set
	 */
	public void setBsnType(PVStatisticsType bsnType) {
		this.bsnType = bsnType;
	}

	/**
	 * @return the pvCount
	 */
	public Long getPvCount() {
		if (pvCount == null) {
			return 0l;
		}
		return pvCount;
	}

	/**
	 * @param pvCount the pvCount to set
	 */
	public void setPvCount(Long pvCount) {
		if (pvCount == null)
			this.pvCount = 0l;
		else 
			this.pvCount = pvCount;
	}
	
	
}
